// dllmain.cpp : Defines the entry point for the DLL application.

// ----------------------------------------------------------------------------

#include "stdafx.h"

#include "DSymLoadHem.h"

// ----------------------------------------------------------------------------

extern "C"
BOOL
APIENTRY
DllMain(
    __in HMODULE hModule,
    __in DWORD ul_reason_for_call,
    __in LPVOID lpReserved
)
{
    UNREFERENCED_PARAMETER(lpReserved);

    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        _ASSERT(!DSymLoad::g_hModule && hModule);
        DSymLoad::g_hModule = hModule;
        break;
    }
    return TRUE;
}

// ----------------------------------------------------------------------------

extern "C" int HEM_API Hem_Load(__inout HIEWINFO_TAG *hiewInfo)
{
    return DSymLoad::Load(hiewInfo);
}

// ----------------------------------------------------------------------------

